package com.yeung.exam;

import java.util.Scanner;

public class VipKid_拆分整数 {
    static int dp[] = new int[10000];
    static int count = 0;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int index = 0;
        print(num, 1, index);
    }

    public static void print(int n, int start, int index) {
        if (n == 0) {
            count++;
            if (count % 4 != 1) {
                System.out.println();
            }
            System.out.print(dp[0]);
            for (int j = 1; j < index; j++) {
                System.out.print("+" + dp[j]);
            }
            if (count % 4 == 0) System.out.println();
        } else {
            for (int j = start; j <= n; j++) {
                dp[index] = j;
                print(n - j, j, index + 1);
            }
        }
    }
}
